/**
 * Copyright (C), 2015-2022, 开度
 * FileName: IUserCredential
 * Author:   ASUS
 * Date:     2022/6/28 16:00
 * Description: 函数式接口
 * History:
 * <author>          <time>          <version>          <desc>
 * Hezeyu           2022/6/28           1.0              函数式接口
 */
package com.example.spring.security.service;

/**
 * 〈函数式接口〉
 *
 * @author Hezeyu
 * @create 2022/6/28
 * @since 1.0.0
 */
@FunctionalInterface
public interface IUserCredential {

    default String getd() {
        return "ce";
    }

//    String print(String str);

     int add(int x, int y);

    public static void main(String[] args) {
        IUserCredential userCredential = (x,y) -> x+y;

        int add = userCredential.add(1, 2);
        System.out.println(add);

    }
}
